package com.cl.service;

import com.cl.po.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author:Long
 * @Date:Created in 16:31 2018/7/4
 * @Description:
 */
public interface TagService {
    Tag saveTag(Tag tag);

    Tag getTag(Long id);

    Tag updateTag(Long id, Tag tag);

    Tag getTagByName(String name);

    void deleteTag(Long id);

    Page<Tag> getTagList(Pageable pageable);

    List<Tag> listTag();

    List<Tag> listTag(String ids);
}
